package com.wdh.cloud.order.web.controller;

import com.wdh.cloud.domain.order.OrderEntity;
import com.wdh.cloud.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/getById/{id}")
    public OrderEntity getById(@PathVariable Integer id){
        return orderService.getById(id);
    }
}
